package Corejava.com;
import java.util.Arrays;
public class LaptopArray {

	public static void main(String[] args) {

		String[] laptops = new String[]{"Dell","Sony","IBM","Lenovo","Asus","HP"};
		
		// for loop
		for(int i=0; i<laptops.length;i++){
		
			String str = laptops[i];
			
			System.out.println("here are laptop brands: "+ str);
		}
		System.out.println(); 
		
		// enhanced for loop
		
		for(String s : laptops){
			System.out.println("Laptops in Enhanced For: " + s); 
		}
	}

}